package com.lefevre.cms.service.platformShare;

import com.lefevre.cms.bean.platformShare.QuestionRewardPlatformShare;
import com.lefevre.cms.bean.platformShare.TopicUnhidePlatformShare;
import com.lefevre.cms.service.besa.DAO;

/**
 * 平台分成
 *
 * @author Lefevre
 */
public interface PlatformShareService extends DAO<TopicUnhidePlatformShare> {

    /**
     * 根据问题Id和回答问题的用户名称查询问答悬赏平台分成
     *
     * @param questionId     问题Id
     * @param answerUserName 回答问题的用户名称
     * @return
     */
    QuestionRewardPlatformShare findQuestionRewardPlatformShareByQuestionIdAndAnswerUserName(Long questionId, String answerUserName);

    /**
     * 删除问答悬赏平台分成
     *
     * @param questionId     问题Id
     * @param answerUserName 回答问题的用户名称
     * @return
     */
    int deleteQuestionRewardPlatformShare(Long questionId, String answerUserName);

}
